<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../datosRequisito.wsdl"/>
      <rootElement name="ViSicevendocuCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/datosRequisito"/>
    </source>
    <source type="WSDL">
      <schema location="../obtenerDetalleDocumentoDA.wsdl"/>
      <rootElement name="ViSicevendocubinaCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDetalleDocumentoDA"/>
      <param name="obtenerDetalleDocumento_OutputVariable.ViSicevendocubinaCollection" />
    </source>
    <source type="WSDL">
      <schema location="../obtenerDetalleRequisito.wsdl"/>
      <rootElement name="ViSicevenatriCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDetalleRequisito"/>
      <param name="detalleRequisito_OutputVariable.ViSicevenatriCollection" />
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../swObtenerDetalleRequisito.wsdl"/>
      <rootElement name="OBTENERDETALLEREQUISITOMR" namespace="http://mincetur.gob.pe/SIC/expediente/obtenerDetalleRequisito"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [MON MAY 27 18:40:52 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:client="http://mincetur.gob.pe/SIC/expediente/swObtenerDetalleRequisito"
                xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDetalleRequisito"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns5="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:ns6="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerDetalleRequisito/obtenerDetalleDocumentoDA"
                xmlns:ns4="http://mincetur.gob.pe/SIC/expediente/obtenerDetalleRequisito"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerDetalleRequisito/datosRequisito"
                xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/datosRequisito"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerDetalleRequisito/obtenerDetalleRequisito"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/top/obtenerDetalleDocumentoDA"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl ns3 plt wsdl ns0 tns top ns2 ns1 xsd client ns5 ns6 ns4 xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:param name="obtenerDetalleDocumento_OutputVariable.ViSicevendocubinaCollection"/>
  <xsl:param name="detalleRequisito_OutputVariable.ViSicevenatriCollection"/>
  <xsl:template match="/">
    <ns4:OBTENERDETALLEREQUISITOMR>
      <ns4:REQUISITOSEVENTO>
        <xsl:attribute name="ID_EVEN">
          <xsl:value-of select="/top:ViSicevendocuCollection/top:ViSicevendocu/top:idEven"/>
        </xsl:attribute>
        <xsl:attribute name="ID_STIPODOCU">
          <xsl:value-of select="/top:ViSicevendocuCollection/top:ViSicevendocu/top:idStipodocu"/>
        </xsl:attribute>
        <xsl:attribute name="DES_DOCU">
          <xsl:value-of select="/top:ViSicevendocuCollection/top:ViSicevendocu/top:desDocu"/>
        </xsl:attribute>
        <xsl:attribute name="DES_TITULO">
          <xsl:value-of select="/top:ViSicevendocuCollection/top:ViSicevendocu/top:desTitulo"/>
        </xsl:attribute>
        <xsl:attribute name="COD_IDEN">
          <xsl:value-of select="/top:ViSicevendocuCollection/top:ViSicevendocu/top:codIden"/>
        </xsl:attribute>
        <xsl:attribute name="ID_TIPOIDEN">
          <xsl:value-of select="/top:ViSicevendocuCollection/top:ViSicevendocu/top:idTipoiden"/>
        </xsl:attribute>
        <ns4:REQUISITOS>
          <xsl:for-each select="$detalleRequisito_OutputVariable.ViSicevenatriCollection/ns3:ViSicevenatriCollection/ns3:ViSicevenatri">
            <ns4:REQUISITO>
              <xsl:attribute name="ID_TATRI">
                <xsl:value-of select="ns3:idTatri"/>
              </xsl:attribute>
              <xsl:attribute name="DES_TATRI">
                <xsl:value-of select="ns3:desTatri"/>
              </xsl:attribute>
              <xsl:attribute name="DES_ETIQUETA">
                <xsl:value-of select="ns3:desEtiqueta"/>
              </xsl:attribute>
              <xsl:attribute name="VAL_TATRI">
                <xsl:value-of select="ns3:valTatri"/>
              </xsl:attribute>
              <xsl:attribute name="COD_TIPODATO">
                <xsl:value-of select="ns3:codTipodato"/>
              </xsl:attribute>
              <xsl:attribute name="COD_SELECTOR">
                <xsl:value-of select="ns3:codSelector"/>
              </xsl:attribute>
              <xsl:attribute name="COD_NOMBTABLA">
                <xsl:value-of select="ns3:codNombtabla"/>
              </xsl:attribute>
              <xsl:attribute name="COD_TATRI">
                <xsl:value-of select="ns3:codTatri"/>
              </xsl:attribute>
              <xsl:attribute name="FLG_ESTADO">
                <xsl:value-of select="ns3:flgEstado"/>
              </xsl:attribute>
              <xsl:attribute name="ID_DOCU">
                <xsl:value-of select="ns3:idDocu"/>
              </xsl:attribute>
              <xsl:attribute name="ID_TIPOIDENDOCU">
                <xsl:value-of select="ns3:idTipoidendocu"/>
              </xsl:attribute>
              <xsl:attribute name="COD_IDENDOCU">
                <xsl:value-of select="ns3:codIdendocu"/>
              </xsl:attribute>
              <xsl:attribute name="FLG_OBLIG">
                <xsl:value-of select="ns3:flgOblig"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_ORDEN">
                <xsl:value-of select="ns3:numOrden"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_TAMAMAXI">
                <xsl:value-of select="ns3:numTamamaxi"/>
              </xsl:attribute>
              <xsl:attribute name="FLG_ENVIMANU">
                <xsl:value-of select="ns3:flgEnvimanu"/>
              </xsl:attribute>
              <xsl:attribute name="COD_PARA">
                <xsl:value-of select="ns3:codPara"/>
              </xsl:attribute>
              <xsl:attribute name="NUM_PIXE">
                <xsl:value-of select="ns3:numPixe"/>
              </xsl:attribute>
              <xsl:attribute name="DES_NOTAS">
                <xsl:value-of select="ns3:desNotas"/>
              </xsl:attribute>
              <xsl:attribute name="DES_URLAYUD">
                <xsl:value-of select="ns3:desURLayud"/>
              </xsl:attribute>
            </ns4:REQUISITO>
          </xsl:for-each>
        </ns4:REQUISITOS>
        <ns4:DOCUMENTO>
          <xsl:attribute name="DES_TITULO">
            <xsl:value-of select="$obtenerDetalleDocumento_OutputVariable.ViSicevendocubinaCollection/ns1:ViSicevendocubinaCollection/ns1:ViSicevendocubina/ns1:desTitulo"/>
          </xsl:attribute>
          <xsl:attribute name="ID_DOCU">
            <xsl:value-of select="$obtenerDetalleDocumento_OutputVariable.ViSicevendocubinaCollection/ns1:ViSicevendocubinaCollection/ns1:ViSicevendocubina/ns1:idDocu"/>
          </xsl:attribute>
          <xsl:attribute name="DES_DOCUMENTO">
            <xsl:value-of select="$obtenerDetalleDocumento_OutputVariable.ViSicevendocubinaCollection/ns1:ViSicevendocubinaCollection/ns1:ViSicevendocubina/ns1:desDocu"/>
          </xsl:attribute>
          <xsl:attribute name="ID_STIPODOCU">
            <xsl:value-of select="$obtenerDetalleDocumento_OutputVariable.ViSicevendocubinaCollection/ns1:ViSicevendocubinaCollection/ns1:ViSicevendocubina/ns1:idStipodocu"/>
          </xsl:attribute>
          <xsl:attribute name="DES_NOTAS">
            <xsl:value-of select="$obtenerDetalleDocumento_OutputVariable.ViSicevendocubinaCollection/ns1:ViSicevendocubinaCollection/ns1:ViSicevendocubina/ns1:desNotas"/>
          </xsl:attribute>
        </ns4:DOCUMENTO>
      </ns4:REQUISITOSEVENTO>
      <ns4:ERROR>
        <xsl:attribute name="ID_ERROR">
          <xsl:text disable-output-escaping="no">0</xsl:text>
        </xsl:attribute>
      </ns4:ERROR>
    </ns4:OBTENERDETALLEREQUISITOMR>
  </xsl:template>
</xsl:stylesheet>
